/*
 *  Copyright 2020-2021 Li Fei
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.pengshun.modules.api.coal.service.dto;

import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Second;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lifei
 * @description /
 * @date 2020-11-13
 **/
@Data
public class ProblemDto implements Serializable {
    /**  常见问题id */
    @NotNull(message = "id不能为空", groups = {First.class})
    private Long id;
    /** 分类id  */
    @NotNull(message = "problemTypeId不能为空", groups = {Second.class})
    private Integer problemTypeId;
    /** 标题  */
    private String title;
    /** 内容  */
    private String content;
    /** 有用数量  */
    private Integer ofuse;
    /** 无用数量  */
    private Integer useless;
    /** 排序  */
    private Integer sort;
    private Date createTime;
}